﻿using Remember.Persistence;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Remember.Web.Service
{
    /// <summary>
    /// 验证用户登陆
    /// </summary>
    public class Authentication : IAuthentication
    {
        /// <summary>
        /// 验证用户登陆
        /// </summary>
        /// <param name="emailAddress"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public bool IsValid(string emailAddress, string password)
        {
            if (emailAddress == "test@test.com" && password == "test")
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}